package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TSalesman;
import com.bootdo.project.dao.TSalesmanMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TSalesmanService {

	@Autowired
    private TSalesmanMapper tSalesmanMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tSalesmanMapper.deleteByPrimaryKey(id);
    }

    public int insert(TSalesman record){
        return tSalesmanMapper.insert(record);
    }

    public int insertSelective(TSalesman record){
        return tSalesmanMapper.insertSelective(record);
    }

    public TSalesman selectByPrimaryKey(Integer id){
        return tSalesmanMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TSalesman record){
        return tSalesmanMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TSalesman record){
        return tSalesmanMapper.updateByPrimaryKey(record);
    }

    public List<TSalesman> selectByCondition(TSalesman record){
        return tSalesmanMapper.selectByCondition(record);
    }

    public List<TSalesman> selectAll(){
        return tSalesmanMapper.selectAll();
    }

    public List<TSalesman> selectByPage(Page<TSalesman> page){
        return tSalesmanMapper.selectByPage(page);
    }

    public Integer count(TSalesman record){
        return tSalesmanMapper.count(record);
    }

    public int deleteByCondition(TSalesman record){
        return tSalesmanMapper.deleteByCondition(record);
    }

}
